import datetime
from applications.extensions import db


class Credible_Fire(db.Model):
    __tablename__ = 'admin_credible_fire'
    id = db.Column(db.Integer, primary_key=True, autoincrement=True, comment='id')
    Name = db.Column(db.String(20), comment='应急事件源头')
    Occur = db.Column(db.String(20), comment='是否应急演练')
    Method = db.Column(db.String(20), comment='应急演练处置方式')
    Score = db.Column(db.String(20), comment='演练评估分数')
    create_at = db.Column(db.DateTime, default=datetime.datetime.now, comment='记录时间')

class Credible_Earthquake(db.Model):
    __tablename__ = 'admin_credible_earthquake'
    id = db.Column(db.Integer, primary_key=True, autoincrement=True, comment='id')
    Name = db.Column(db.String(20), comment='应急事件源头')
    Occur = db.Column(db.String(20), comment='是否应急演练')
    Method = db.Column(db.String(20), comment='演练应急处置方式')
    Score = db.Column(db.String(20), comment='演练评估分数')
    create_at = db.Column(db.DateTime, default=datetime.datetime.now, comment='记录时间')

class Credible_Run(db.Model):
    __tablename__ = 'admin_credible_run'
    id = db.Column(db.Integer, primary_key=True, autoincrement=True, comment='id')
    Name = db.Column(db.String(20), comment='应急事件源头')
    Occur = db.Column(db.String(20), comment='是否应急演练')
    Method = db.Column(db.String(20), comment='演练应急处置方式')
    Score = db.Column(db.String(20), comment='演练评估分数')
    create_at = db.Column(db.DateTime, default=datetime.datetime.now, comment='记录时间')

class Credible_Fight(db.Model):
    __tablename__ = 'admin_credible_fight'
    id = db.Column(db.Integer, primary_key=True, autoincrement=True, comment='id')
    Name = db.Column(db.String(20), comment='应急事件源头')
    Occur = db.Column(db.String(20), comment='是否应急演练')
    Method = db.Column(db.String(20), comment='演练应急处置方式')
    Score = db.Column(db.String(20), comment='演练评估分数')
    create_at = db.Column(db.DateTime, default=datetime.datetime.now, comment='记录时间')





